<include file="Public/head" title="我的积分"/>
<div class="index_top clear">
    <a href="javascript:;" onclick="history.go(-1)" class="l Return"><i class="iconfont icon-iconfontfanhui"></i></a>
    <a href="javascript:;" class="Sever r"><i class="iconfont icon-guize"></i></a>
</div>
<div class="main">
    <div class="personal_warp">
        <div class="integral_title">
            <div>{$user.have_cent}</div>
            <span>当前积分</span>
            <a href="{:U('Integral/index')}">积分兑换商品</a>
        </div>
        <div class="integral_history">
            <div class="first_title">积分记录</div>
            <div class="integral_warp">
                <foreach name="all" key="n" item="val">
                <div class="integral_list">
                    <div class="title">{:substr($n,0,7)} <span>{$val.status}</span><i class="iconfont icon-xiala1 drop_down"></i><em>{$val.sum|default=0}</em></div>
                    <ul>
                        <foreach name="val.datas" key="d" item="v">
                        <li>
                            <div class="list_title">
                               {:substr($d,0,10)} <div class="t_line"></div><em></em>
                            </div>
                            <foreach name="v" item="value">
                            <dl>
                                <dd><span class="max_width">{$value.sense}</span><em><if condition="$value.type eq 1">+<else/>-</if>{$value.cent_value}</em></dd>
                            </dl>
                            </foreach>
                        </li>
                        </foreach>
                    </ul>
                </div>
                </foreach>
        </div>
    </div>
</div>
<script type="text/javascript">
        (function () {
            /*移动端300毫秒延迟*/
            window.addEventListener('load', function() {
              FastClick.attach(document.body);
            }, false);
            $(function () {
                $(".integral_list .iconfont").live("click",function () {
                    var that=this;
                    if($(that).hasClass("drop_down")){
                        $(that).removeClass("icon-qianjin").removeClass("drop_down").addClass("icon-xiala1").addClass("drop_up");
                        $(that).parent().parent().children("ul").removeClass("hide");
                    }else{
                        $(that).removeClass("icon-xiala1").removeClass("drop_up").addClass("icon-qianjin").addClass("drop_down");
                        $(that).parent().parent().children("ul").addClass("hide");
                    }
                });
                $(".Sever").click(function () {
                    Establish_fenxiang("温馨提示","分享到朋友圈可获得10积分<br>分享给好友可获得5积分<br>每天最多获得的20积分");
                    $(".norob").bind("touchmove",function (e) {
                        e.preventDefault();
                    })
                });
                $("body").on("click",".Position_close",function () {
                    $(".norob").hide();
                });
                $("body").on("click",".btn",function () {
                    $(".norob").hide();
                });
            })
        })(jQuery)
</script>
<include file="Public/foot"/>